package com.mobis.sms.listenser;


import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@RabbitListener(queues = "mobis")
public class SmsListener {

    @RabbitHandler
    public void sendSms(Map<String,String> map){

        System.out.println(map.get("mobile"));
        System.out.println(map.get("code"));
    }
}
